package com.huatai.bpmn.controller;

import com.alibaba.fastjson.JSONObject;
import com.huatai.bpmn.entity.DepartmentEntity;
import com.huatai.bpmn.entity.YYDataInfoEntity;
import com.huatai.bpmn.service.TbCommitService;
import com.huatai.bpmn.service.YYDataInfoService;
import com.huatai.common.api.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author yxy
 */
@RestController
@RequestMapping("/yyDataInfo")
@Api(value = "流程-数据-关联表", tags = "流程-数据-关联表")
@Slf4j
public class YYDataInfoController {

	@Autowired
	private YYDataInfoService yyDataInfoService;

	@GetMapping("/list")
	@ApiOperation("列表")
	public R list(){
		List<YYDataInfoEntity> list = yyDataInfoService.list();
		return R.data(list);
	}

}
